package ooday04;

public class Teacher extends Person{
    double salary;
    Teacher(String name, int age, String address,double salary) {
        super(name,age,address);
        this.salary = salary;
    }

    @Override
    void sayHi() {
        System.out.println("name=" + name +
                ", age=" + age +
                ", address=" + address + ",salary " + salary);
    }
}
